﻿<html>
<head>
<title>TurBlog:$!info.title</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="Mon, 23 Jan 1978 20:52:30 GMT">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name="keywords" content="TurBlog">
<meta name="description" content="TurBlog" >
<link href="/include/css/admin.css" type=text/css rel=stylesheet>
<script language="JavaScript" src="/include/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/ajaxSupport.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/public.js" type="text/JavaScript"></script>
<script>
var timer;
var win;
function smdWin(){
	if(EditForm.file.value=="")
	{
		alert("请选择要上传的文件!");		
		return false;		
		
	}
	win=window.showModalDialog("/blogPhoto.do?parameter=upload",window,"dialogWidth=500px;dialogHeight=240px;status=0;scroll:no");	
	if(win=="ok"){
		EditForm.submit();
	}
	
}

function doDel(cid){
	ListForm.cid.value=cid;
	ListForm.parameter.value="del";
	ListForm.submit();
}

function fontZoom(size){
	
	document.getElementById('content').style.fontSize=size+'px'
	
}
function doCheckForm()
{
	
	if(EditForm.title.value=="")
	{
		
		alert("名称不能为空!");		
		return false;		
		
	}
	if(EditForm.url.value==""&&EditForm.file.value=="")
	{
		
		alert("必须选择要上传的图片或录入图片连接!");		
		return false;		
		
	}
	return true;	
	
}
</script>
</head>
<body bgcolor="#EBF0F4" leftmargin="0" rightmargin="6" topmargin="0" bottommargin="1" scroll="no" onselectstart="return false;">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="Border">
	<tr>
		<td align="center" valign="top">
<table width="96%" height="34"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td valign="middle"><table width="53%"  border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="10%" valign="bottom"><img src="#if ($dir.tagImg) $dir.tagImg #else /images/system/winzip.jpg #end" width="32" height="32" /></td>
					<td width="90%" class="titletxt">博客图片列表</td>
				</tr>
			</table></td>
		<td width="100">&nbsp;</td>
		<td width="120">&nbsp;</td>
	</tr>
</table>
<br>
<table width="96%" border=0 align="center" cellpadding=0 cellspacing=0 bgcolor="#FFFFFF">
	<tbody>
		<tr>
			<td valign=top bgcolor=#ffffff><table cellspacing=0 cellpadding=0 width=100% border=0>
					<tbody>
						<tr>
							<td valign=top><table style="height:100%;overflow:auto;">
									<tr> #set($count=0)
										#foreach( $info in $list)
										#set($count=$count+1)
										<td><table width="210" helght="200" border="1" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000" style="word-break:break-all;">
												<tr>
													<td align="left" bgcolor="#cde7dc"><b>标题:</b> $!info.title</td>
													<td width="80" align="right" bgcolor="#cde7dc"><a href="/blogPhoto.do?parameter=edit&cid=$!info.cid">修改</a> <a href="javascript:void(0)" onClick="doDel('$!info.cid')">删除</a> &nbsp;&nbsp;</td>
												</tr>
												<tr align="center">
													<td height="100" colspan="2" class="font1"><a href="$!info.url" target="_blank"><img src="$!info.s_url" alt="" border="0" /></a></td>
												</tr>
												<tr>
													<td colspan="2" width="100%" bgcolor="#cde7dc">时间: $!info.inputtime </td>
												</tr>
											</table></td>
										#set($temp=$count%3)
										#if($temp==0) </tr>
									#end
									#end
								</table>
								</form></td>
						</tr>
					</tbody>
				</table></td>
		</tr>
	</tbody>
</table>
<table width="96%" border="0" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000" style="word-break:break-all;">
	<tr>
		<td width="100%" align="center"><form id="ListForm" name="ListForm"  method="post" action="/blogPhoto.do">
				<input type="hidden" name="parameter" value="">
				<input type="hidden" name="cid" value="$!cid">
				<input type="hidden" name="mulitCid" value="$!mulitCid">
				<input type="hidden" name="page" value="$!page">
				<input name="orderField" type="hidden" value="$!orderField">
				<input name="orderType" type="hidden" value="$!orderType">
			</form>
			共 $!rows 张照片 当前第 $!page/$!pages 页 每页 $!pageSize 条$!gotoPageHTML</td>
	</tr>
</table>
<table cellspacing=0 cellpadding=0 width="500" align=center border=0>
	<form id="EditForm" action=blogPhoto.do method=post enctype="multipart/form-data" name="EditForm" onSubmit="javascript:return doCheckForm();">
		<input type="hidden" name="parameter"  value="save" >
		<input type="hidden" id="dirid" name="dirid" value="$!dirid" >
		<input type="hidden" id="circlesn" name="circlesn" value="$!circlesn" >
		<input type="hidden" id="title" name="title" value="$!title" >
		<input type="hidden" id="intro" name="intro" value="$!intro" >
		<tr>
			<td align=right height=22><span class=font05><span class="font06"><img  src="/images/dc_img14.gif">上传照片</span>：</span></td>
			<td height=22><input type="file" name="file">
				<input type="button" name="Submit" value="上传" onClick="smdWin()"></td>
		</tr>
	</form>
</table>
<br>
	</td>
</tr>
</table>
</body>
</html>
#if ($msg)
<script>
alert('$!msg');</script>
#end